<?php

require_once('BaseModel.php');

class Conteudo extends BaseModel{
	protected $_name =  "conteudo";

	function getCatsOperationId( $parentId, $site_id = NULL ){
		if( !$site_id ){
			$site_id = $this->_site['id'];
		}

		return $this->getName().'_parent'.$parentId.'site_'.$site_id;
	}

	function getOperationTags( $site_id = NULL  ){
		if( !$site_id ){
			$site_id = $this->_site['id'];
		}
		return array( $this->getName(), 'tree', 'site_'.$site_id );
	}

	function cleanCache(){
		$this->_cache->clean( 
    		Zend_Cache::CLEANING_MODE_MATCHING_TAG,
			$this->getOperationTags()
		);
	}
}